﻿using System;
using Microsoft.Xna.Framework;

namespace MaterialEditor
{
    /// <summary>
    /// Stores tesselation information
    /// </summary>
    public class Tesselate : IEffect
    {
        public int TileWidth;
        public int TileHeight;

        public Vector2 Value
        {
            get { return new Vector2(TileWidth, TileHeight); }
        }

        public Matrix Transform
        {
            get { return Matrix.CreateScale(TileWidth, TileHeight, 0.0f); }
        }

        public IEffect Clone()
        {
            Tesselate outval = new Tesselate();
            outval.TileWidth = TileWidth;
            outval.TileHeight = TileHeight;

            return outval;
        }

        public Microsoft.Xna.Framework.Graphics.Effect effect
        {
            get { return null; }
        }


        public Microsoft.Xna.Framework.Graphics.Texture2D[] textures
        {
            get { return null; }
        }
    }
}